<?php

namespace app\common\model\user;

use app\common\model\Model;

class Audit extends Model
{
    // 表名
    protected $name = 'user_audit';

    // 追加属性
    protected $append = [

    ];

    const STATUS_WAIT = 0;
    const STATUS_PASS = 1;
    const STATUS_REFUSE = 2;

    const STATUS = [
        self::STATUS_WAIT => '待审核',
        self::STATUS_PASS => '审核通过',
        self::STATUS_REFUSE => '审核拒绝',
    ];

    public function user()
    {
        return $this->belongsTo('app\\common\\model\\User', 'user_id', 'id');
    }
}
